package com.atom.module.lib.opengles.egl

import android.opengl.EGL14

class EGLContextAttrs {
    private var version = 2

    fun version(v: Int): EGLContextAttrs {
        version = v
        return this
    }

    fun build(): IntArray {
        return intArrayOf(EGL14.EGL_CONTEXT_CLIENT_VERSION, version, EGL14.EGL_NONE)
    }
}